package com.xdxc.controller;


import com.xdxc.feign.GradingFeign;
import com.xdxc.model.dto.ExamingDto;
import com.xdxc.model.form.GradingForm;
import com.xdxc.response.Result;
import com.xdxc.service.impl.GradingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class ExamGradingController {

    @Autowired
    private GradingService gradingService;


    @PostMapping("/start-grading")
    public Result grade(@RequestBody GradingForm gradingForm) {



        return gradingService.sendUserAnswers(gradingForm.getExamId());
    }


}
